﻿@{
	string FlowID = Request.QueryString["flowid"];
	string StepID = Request.QueryString["stepid"];
	string GroupID = Request.QueryString["groupid"];
	string TaskID = Request.QueryString["taskid"];
	string InstanceID = Request.QueryString["instanceid"];
	string DisplayModel = Request.QueryString["display"] ?? "0";
	string DBConnID = "06075250-30dc-4d32-bf97-e922cb30fac8";
	string DBTable = "TempTest";
	string DBTablePK = "ID";
	string DBTableTitle = "Title";
	if(InstanceID.IsNullOrEmpty()){InstanceID = Request.QueryString["instanceid1"];}
	YJ.Platform.Dictionary BDictionary = new YJ.Platform.Dictionary();
	YJ.Platform.WorkFlow BWorkFlow = new YJ.Platform.WorkFlow();
	YJ.Platform.WorkFlowTask BWorkFlowTask = new YJ.Platform.WorkFlowTask();
	string fieldStatus = BWorkFlow.GetFieldStatus(FlowID, StepID);
	LitJson.JsonData initData = BWorkFlow.GetFormData(DBConnID, DBTable, DBTablePK, InstanceID, fieldStatus, "{}");
	string TaskTitle = BWorkFlow.GetFromFieldData(initData, DBTable, DBTableTitle);
}
<link href="~/Scripts/FlowRun/Forms/flowform.css" rel="stylesheet" type="text/css" />
<script src="~/Scripts/FlowRun/Forms/common.js" type="text/javascript" ></script>
<input type="hidden" id="Form_ValidateAlertType" name="Form_ValidateAlertType" value="1" />
<input type="hidden" id="Form_TitleField" name="Form_TitleField" value="TempTest.Title" />
<input type="hidden" id="Form_DBConnID" name="Form_DBConnID" value="06075250-30dc-4d32-bf97-e922cb30fac8" />
<input type="hidden" id="Form_DBTable" name="Form_DBTable" value="TempTest" />
<input type="hidden" id="Form_DBTablePk" name="Form_DBTablePk" value="ID" />
<input type="hidden" id="Form_DBTableTitle" name="Form_DBTableTitle" value="Title" />
<input type="hidden" id="Form_AutoSaveData" name="Form_AutoSaveData" value="1" />
<textarea id="Form_DBTableTitleExpression" name="Form_DBTableTitleExpression" style="display:none;width:0;height:0;"></textarea>
<script type="text/javascript">
	var initData = @Html.Raw(BWorkFlow.GetFormDataJsonString(initData));
	var fieldStatus = "1"=="@Request.QueryString["isreadonly"]" ? {} : @Html.Raw(fieldStatus);
	var displayModel = '@DisplayModel';
	$(window).load(function (){
		formrun.initData(initData, "TempTest", fieldStatus, displayModel);
	});
</script>
<p style="text-align: center;"><strong><span style="font-size: 24px;">请  假  单</span></strong></p><table class="flowformtable" cellspacing="1" cellpadding="0" data-sort="sortDisabled"><tbody><tr class="firstRow"><td valign="top" style="border-color: rgb(221, 221, 221);" width="167">标题：</td><td valign="top" colspan="3" style="border-color: rgb(221, 221, 221);"><input type="text" id="TempTest.Title" type1="flow_text" name="TempTest.Title" value="@(YJ.Platform.Users.CurrentUserName+"的请假\"''申请")" align="0" style="width:75%;text-align:0;padding-right:3px;" isflow="1" class="mytext" title="" onchange="onchange_31414dcceba792ae7555cf547c5f2469 (this);"/><script type="text/javascript">function onchange_31414dcceba792ae7555cf547c5f2469(srcObj){alert("adfasdfddd2222222sadf");}</script></td></tr><tr><td valign="top" style="border-color: rgb(221, 221, 221);" width="167">请假人：<br/></td><td valign="top" colspan="3" style="border-color: rgb(221, 221, 221);"><input name="TempTest.UserID" id="TempTest.UserID" value="u_@YJ.Platform.Users.CurrentUserID.ToString()" type1="flow_org" more="0" isflow="1" class="mymember" title="" dept="0" station="0" user="1" workgroup="0" unit="0" rootid=""/>  </td></tr><tr><td valign="top" style="border-color: rgb(221, 221, 221);" rowspan="1" colspan="1" width="167">所在部门：</td><td valign="top" rowspan="1" colspan="3" style="border-color: rgb(221, 221, 221);"><input name="TempTest.DeptID" id="TempTest.DeptID" type="text" value="@(YJ.Platform.Users.CurrentDeptID)" type1="flow_org" more="0" isflow="1" class="mymember" title="" dept="1" station="0" user="0" workgroup="0" unit="0" rootid=""/></td></tr><tr><td valign="top" style="border-color: rgb(221, 221, 221);" width="167">开始日期：<br/></td><td valign="top" style="border-color: rgb(221, 221, 221);" colspan="3" width="630"><input name="TempTest.Date1" id="TempTest.Date1" type="text" value="" defaultvalue="" type1="flow_datetime" currentmonth="0" dayafter="0" daybefor="0" istime="0" isflow="1" class="mycalendar" title=""/></td></tr><tr><td valign="top" style="border-color: rgb(221, 221, 221);" rowspan="1" colspan="1" width="167">结束日期：</td><td valign="top" rowspan="1" colspan="3" style="border-color: rgb(221, 221, 221);" width="630"><input name="TempTest.Date2" id="TempTest.Date2" type="text" value="" defaultvalue="" type1="flow_datetime" currentmonth="0" dayafter="1" daybefor="0" istime="0" isflow="1" class="mycalendar" title=""/></td></tr><tr><td valign="top" style="border-color: rgb(221, 221, 221);" width="167">请假类型：</td><td valign="top" style="border-color: rgb(221, 221, 221);" colspan="3" width="630"><input type="text" type1="flow_dict" id="TempTest.Type" name="TempTest.Type" value="" dialogtitle="" ismore="0" isroot="0" isparent="0" datasource="0" ds_url_gettitle="" class="mylrselect" title="" rootid="e7f836be-f091-460f-86e1-f0b6cdceba39" ischild="0" isflow="1"/></td></tr><tr><td valign="top" style="border-color: rgb(221, 221, 221);" rowspan="1" colspan="1" width="167">请假天数：</td><td valign="top" style="border-color: rgb(221, 221, 221);" rowspan="1" colspan="3" width="630"><input name="TempTest.Days" align="left" id="TempTest.Days" type="text" value="" type1="flow_text" valuetype="4" isflow="1" class="mytext" title=""/>  天</td></tr><tr><td valign="top" style="border-color: rgb(221, 221, 221);" width="167">请假事由：<br/></td><td valign="top" style="border-color: rgb(221, 221, 221);" colspan="3" width="630"><textarea isflow="1" type1="flow_textarea" id="TempTest.Reason" name="TempTest.Reason" class="mytext" style="width: 600px; height: 80px;" maxlength="500"></textarea></td></tr><tr><td valign="top" style="border-color: rgb(221, 221, 221);" width="167">相关附件：</td><td valign="top" style="border-color: rgb(221, 221, 221);" colspan="3" width="630"><input name="TempTest.test" id="TempTest.test" style="width: 200px;" value="" type1="flow_files" filetype="" isflow="1" class="myfile" title=""/></td></tr></tbody></table><p> </p>
